package com.learn.project2.model.vo.admin.footprint;



import com.learn.project2.bean.MarketFootPrint;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @description: 封装会员足迹的响应数据
 * @author wxy
 * @date 2022-01-08 11:08
 * @version 1.0
 */
@NoArgsConstructor
@Data
public class FootprintListVO {

    private Integer total;
    private Integer pages;
    private Integer limit;
    private Integer page;
    private List<MarketFootPrint> list;

    public static FootprintListVO data(long total, Integer pages, Integer limit, Integer page, List list) {
        FootprintListVO footprintListVO = new FootprintListVO();
        footprintListVO.setTotal((int) total);
        footprintListVO.setPages(pages);
        footprintListVO.setPage(page);
        footprintListVO.setLimit(limit);
        footprintListVO.setList(list);
        return footprintListVO;
    }
}
